<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"  language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>客户关系管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" type="text/css" href="../../resources/layuiadmin/layui/css/layui.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/layuiadmin/style/admin.css" media="all">



    <script>
        /^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
    </script>

</head>
<body class="layui-layout-body">

<div id="LAY_app">
    <div class="layui-layout layui-layout-admin ">
        <div class="layui-header layui-bg-green">
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="http://www.layui.com/admin/" target="_blank" title="前台">
                        <i class="layui-icon layui-icon-website"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="${pageContext.request.contextPath}/admin/welcome" target="menuFrame" layadmin-event="refresh" title="刷新">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">

                <li class="layui-nav-item" lay-unselect>
                    <a href="${pageContext.request.contextPath}/admin/about">
                        <cite>关于</cite>
                    </a>
                </li>
            </ul>
        </div>

        <!-- 侧边导航 -->
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll">
                <div class="layui-logo" lay-href="console.html">
                    <span>客户关系管理系统</span>

                </div>

                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
                    <li data-name="home" class="layui-nav-item layui-nav-itemed">
                        <a lay-tips="用户管理" lay-direction="2">
                            <i class="layui-icon layui-icon-home"></i>
                            <cite>用户管理</cite>
                        </a>


                        <dl class="layui-nav-child">
                            <dd data-name="console" class="layui-this">
                                <a href="${pageContext.request.contextPath}/user/allUser" target="menuFrame">用户查询</a>
                            </dd>
                            <dd data-name="console">
                                <a href="${pageContext.request.contextPath}/user/toAddUser" target="menuFrame">添加用户</a>
                            </dd>
                        </dl>
                    </li>

                    <li data-name="component" class="layui-nav-item">
                        <a href="javascript:" lay-tips="客户管理" lay-direction="2">
                            <i class="layui-icon layui-icon-component"></i>
                            <cite>客户管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="console" class="layui-this">
                                <a href="${pageContext.request.contextPath}/client/allClient" target="menuFrame">客户信息</a>
                            </dd>
                            <dd data-name="console">
                                <a href="${pageContext.request.contextPath}/client/toAddClient" target="menuFrame">新增客户</a>
                            </dd>
                        </dl>
                    </li>

                    <li data-name="template" class="layui-nav-item">
                        <a href="javascript:" lay-tips="供应商管理" lay-direction="2">
                            <i class="layui-icon layui-icon-template"></i>
                            <cite>供应商管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd data-name="console" class="layui-this">
                                <a href="${pageContext.request.contextPath}/supplier/allSupplier" target="menuFrame">供应商查询</a>
                            </dd>
                            <dd data-name="console">
                                <a href="${pageContext.request.contextPath}/supplier/toAddSupplier" target="menuFrame">添加供应商</a>
                            </dd>
                        </dl>
                    </li>
                    <li data-name="senior" class="layui-nav-item">
                        <a href="${pageContext.request.contextPath}/admin/activity" target="menuFrame" lay-tips="活动信息管理" lay-direction="2">
                            <i class="layui-icon layui-icon-senior"></i>
                            <cite>活动信息管理</cite>
                        </a>

                    </li>
                    <li data-name="user" class="layui-nav-item">
                        <a href="${pageContext.request.contextPath}/admin/serve" target="menuFrame" lay-tips="服务信息管理" lay-direction="2">
                            <i class="layui-icon layui-icon-user"></i>
                            <cite>服务信息管理</cite>
                        </a>

                    </li>
                </ul>
            </div>
        </div>

        <div class="layadmin-pagetabs layui-bg-green" id="LAY_app_tabs">

        </div>


        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe class="layadmin-iframe" frameborder="0" height="400" id="menuFrame" name="menuFrame"
                        src="${pageContext.request.contextPath}/admin/welcome" width="450">

                </iframe>
            </div>
        </div>

        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>
//js
<script src="${pageContext.request.contextPath}/resources/layuiadmin/layui/layui.all.js"></script>
<script>
    //导航依赖
    layui.use('element', function(){
        const element = layui.element;
    });
</script>


<script>
    layui.config({
        base: '${pageContext.request.contextPath}/resources/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'index.jsp' //主入口模块
    }).use('index');

</script>
</body>
</html>


